package oop.student;

public class Student {
    int id;
    String name;
    int age;
    double math;
    double english;

    public Student(){

    }
    public Student(int id,String name,int age,double math,double english){
        this.id=id;
        this.name=name;
        this.age=age;
        this.math=math;
        this.english=english;
    }
    public  double getSum(){
        double  sum=english+math;
        return sum;
    }
    public void show(){
        System.out.println(
                "学号："+id
                +"姓名："+name
                +"年龄："+age
                +"数学成绩："+math
                +"英语成绩："+english
        );
    }
}
